package com.AI.SDK;

import com.AI.SDK.Client.AIClient;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

@Configuration
@ConfigurationProperties("com.ai")
@Data
@ComponentScan
public class AIConfigSdk {
    private String accessKey;
    private String secretKey;
    @Bean
    public AIClient aiConfigSdk(){
        return new AIClient(accessKey,secretKey);
    }
}
